"use client"; import { BannerRep } from "@/api/home"; import Box from "@/components/Box"; import { FC, PropsWithChildren } from "react"; import { Swiper, SwiperSlide } from "swiper/react"; // const Box = dynamic(() => import("@/components/Box")); interface Props { banners: BannerRep[]; } const HomeCard: FC> = (props) => { const { banners = [] } = props; return ( {banners?.map((banner, index) => ( ))} ); }; export default HomeCard;